|
Repetier-Firmware
1.0.0
|
Macros | |
| #define | HEATER_PWM_STEP 2 |
| #define | HEATER_PWM_MASK 254 |
| #define | COOLER_PWM_SPEED 0 |
| #define | COOLER_PWM_STEP 1 |
| #define | COOLER_PWM_MASK 255 |
| #define | pulseDensityModulate(pin, density, error, invert) {uint8_t carry;carry = error + (invert ? 255 - density : density); WRITE(pin, (carry < error)); error = carry;} |
| #define | ADVANCE_DIR_FILTER_STEPS 2 |
Functions | |
| long | __attribute__ ((used)) stepperWait=0 |
| void | setTimer (uint32_t delay) |
| Sets the timer 1 compare value to delay ticks. More... | |
| ISR (TIMER1_COMPA_vect) | |
| Timer interrupt routine to drive the stepper motors. More... | |
| ISR (PWM_TIMER_VECTOR) | |
| ISR (EXTRUDER_TIMER_VECTOR) | |
| Timer routine for extruder stepper. More... | |
Variables | |
| uint8 | osAnalogInputCounter [ANALOG_INPUTS] |
| uint | osAnalogInputBuildup [ANALOG_INPUTS] |
| uint8 | osAnalogInputPos = 0 |
| const uint16_t fast_div_lut [17] | PROGMEM |
| void(* | resetFunc )(void)=0 |
| static int8_t | extruderLastDirection = 0 |
| #define ADVANCE_DIR_FILTER_STEPS 2 |
| #define COOLER_PWM_MASK 255 |
| #define COOLER_PWM_SPEED 0 |
| #define COOLER_PWM_STEP 1 |
| #define HEATER_PWM_MASK 254 |
| #define HEATER_PWM_STEP 2 |
| #define pulseDensityModulate | ( | pin, | |
| density, | |||
| error, | |||
| invert | |||
| ) | {uint8_t carry;carry = error + (invert ? 255 - density : density); WRITE(pin, (carry < error)); error = carry;} |
|
pure virtual |
| ISR | ( | TIMER1_COMPA_vect | ) |
Timer interrupt routine to drive the stepper motors.
| ISR | ( | PWM_TIMER_VECTOR | ) |
This timer is called 3906 timer per second. It is used to update pwm values for heater and some other frequent jobs.
| ISR | ( | EXTRUDER_TIMER_VECTOR | ) |
Timer routine for extruder stepper.
Several methods need to move the extruder. To get a optima result, all methods update the printer_state.extruderStepsNeeded with the number of additional steps needed. During this interrupt, one step is executed. This will keep the extruder moving, until the total wanted movement is achieved. This will be done with the maximum allowable speed for the extruder.
|
inline |
Sets the timer 1 compare value to delay ticks.
This function sets the OCR1A compare counter to get the next interrupt at delay ticks measured from the last interrupt. delay must be << 2^24
|
static |
| uint osAnalogInputBuildup[ANALOG_INPUTS] |
| uint8 osAnalogInputCounter[ANALOG_INPUTS] |
| uint8 osAnalogInputPos = 0 |
| const uint16_t slow_div_lut [257] PROGMEM |
| void(* resetFunc) (void)=0 |